interface FetchCancelReasonAndConfigAPIResData {
  code: number
  msg: string
  time: string
  data: {
    cannle_reason: CancelReason[] // 取消原因
    reserve_project: ReserveProject[] // 就诊预约项目
  }
}

export function fetchCancelReasonAndConfigAPI(token: string) {
  return httpInstance.get<FetchCancelReasonAndConfigAPIResData>(
    '/api/reserve_order/config',
    { headers: { token } },
  )
}
